package jy.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Tfixed entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tfixed", catalog = "jlubank")
public class Tfixed implements java.io.Serializable {

	// Fields

	private String id;
	private Taccount taccount;
	private float amount;
	private Date stime;
	private Integer stype;
	private float rate;

	// Constructors

	/** default constructor */
	public Tfixed() {
	}

	/** minimal constructor */
	public Tfixed(String id) {
		this.id = id;
	}

	/** full constructor */
	public Tfixed(String id, Taccount taccount, float amount, Date stime,
			Integer stype, float rate) {
		this.id = id;
		this.taccount = taccount;
		this.amount = amount;
		this.stime = stime;
		this.stype = stype;
		this.rate = rate;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "acid")
	public Taccount getTaccount() {
		return this.taccount;
	}

	public void setTaccount(Taccount taccount) {
		this.taccount = taccount;
	}

	@Column(name = "amount", precision = 12, scale = 0)
	public float getAmount() {
		return this.amount;
	}

	public void setAmount(float amount) {
		this.amount = amount;
	}

	@Column(name = "stime", length = 0)
	public Date getStime() {
		return this.stime;
	}

	public void setStime(Date stime) {
		this.stime = stime;
	}

	@Column(name = "stype")
	public Integer getStype() {
		return this.stype;
	}

	public void setStype(Integer stype) {
		this.stype = stype;
	}

	@Column(name = "rate", precision = 12, scale = 0)
	public float getRate() {
		return this.rate;
	}

	public void setRate(float rate) {
		this.rate = rate;
	}

}